const routes = [
    {
        name: 'UserLogin',
        path: '/login',
        meta: {
            title: '登录'
        },
        components: {
            default: resolve => require(['../views/public/login.vue'], resolve)
        }
    },
    {
        name: 'forgotPassWord',
        path: '/public/forgotPassWord',
        meta: {
            title: '忘记密码'
        },
        components: {
            default: resolve => require(['../views/public/forgotPassWord.vue'], resolve)
        }
    },
    {
        name: 'personalData',
        path: '/public/personalData',
        meta: {
            title: '个人资料'
        },
        components: {
            default: resolve => require(['../views/public/personalData.vue'], resolve)
        }
    },
    {
        name: 'personalInformation',
        path: '/public/personalInformation',
        meta: {
            title: '业务员个人资料'
        },
        components: {
            default: resolve => require(['../views/public/personalInformation.vue'], resolve)
        }
    },
    {
        name: 'changePassword',
        path: '/public/changePassword',
        meta: {
            title: '修改密码'
        },
        components: {
            default: resolve => require(['../views/public/changePassword.vue'], resolve)
        }
    },
    {
        name: 'securitySettings',
        path: '/public/securitySettings',
        meta: {
            title: '安全设置'
        },
        components: {
            default: resolve => require(['../views/public/securitySettings.vue'], resolve)
        }
    },
    {
        name: 'message-list',
        path: '/public/message-list',
        meta: {
            title: '消息列表'
        },
        components: {
            default: resolve => require(['../views/public/message-list.vue'], resolve)
        }
    },
    {
        name: 'message-details',
        path: '/public/message-detail',
        meta: {
            title: '消息详情'
        },
        components: {
            default: resolve => require(['../views/public/message-detail.vue'], resolve)
        }
    },
    {
        name: 'announcement',
        path: '/public/announcement',
        meta: {
            title: '公告'
        },
        components: {
            default: resolve => require(['../views/public/announcement.vue'], resolve)
        }
    },
    //门店-我的钱包
    {
        name: 'wallet',
        path: '/shop/wallet',
        meta: {
            title: '我的钱包'
        },
        components: {
            default: resolve => require(['../views/shop/wallet.vue'], resolve)
        }
    },
    //门店-积分
    {
        name: 'integral',
        path: '/shop/integral',
        meta: {
            title: '我的积分'
        },
        components: {
            default: resolve => require(['../views/shop/integral.vue'], resolve)
        }
    },
    //业务员-提现
    {
        name: 'withdrawal',
        path: '/shop/withdrawal',
        meta: {
            title: '提现'
        },
        components: {
            default: resolve => require(['../views/shop/withdrawal.vue'], resolve)
        }
    },
    //业务员-个人中心-我的服务门店-门店订单
    {
        name: 'order-stores',
        path: '/salesman/order-stores',
        meta: {
            title: '业务员-个人中心-我的服务门店-门店订单'
        },
        components: {
            default: resolve => require(['../views/salesman/order-stores.vue'], resolve)
        }
    },
    //业务员-个人中心-我的服务门店
    {
        name: 'SalesmanOrderShop',
        path: '/salesman/order-shop',
        meta: {
            title: '我的服务门店'
        },
        components: {
            default: resolve => require(['../views/salesman/order-shop.vue'], resolve)
        }
    },
    //业务员-个人中心-我的服务门店-待审核-详情
    {
        name: 'OrderAudit',
        path: '/salesman/OrderAudit',
        meta: {
            title: '业务员-个人中心-我的服务门店-待审核-详情'
        },
        components: {
            default: resolve => require(['../views/salesman/order-audit.vue'], resolve)
        }
    },
    //暂存点管理员
    {
        name: 'temporary-center',
        path: '/temporaryDirector/temporary-center',
        meta: {
            title: '暂存点管理员-个人中心'
        },
        components: {
            default: resolve => require(['../views/temporaryDirector/temporary-center.vue'], resolve)
        }
    },
    //公告
    {
        name: 'alerts',
        path: '/public/alerts',
        meta: {
            title: '公告通知弹框'
        },
        components: {
            default: resolve => require(['../views/public/alerts.vue'], resolve)
        }
    },
];

export default routes;
